<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sdSaleOrderBean.id}"/>
		<f:event type="preRenderView" listener="#{sdSaleOrderBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Sd Sale Order"/>

	<ui:define name="header">
		Sd Sale Order
	</ui:define>

	<ui:define name="subheader">
		View existing Sd Sale Order
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoNo" value="So No:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoNo" value="#{sdSaleOrderBean.sdSaleOrder.soNo}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSysTermOfPayment" value="Sys Term Of Payment:"/>
			<h:link id="sdSaleOrderBeanSdSaleOrderSysTermOfPayment" outcome="/sysTermOfPayment/view" value="#{sdSaleOrderBean.sdSaleOrder.sysTermOfPayment}">
				<f:param name="id" value="#{sdSaleOrderBean.sdSaleOrder.sysTermOfPayment.termOfPaymentNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSdSaleOrderStatus" value="Sd Sale Order Status:"/>
			<h:link id="sdSaleOrderBeanSdSaleOrderSdSaleOrderStatus" outcome="/sdSaleOrderStatus/view" value="#{sdSaleOrderBean.sdSaleOrder.sdSaleOrderStatus}">
				<f:param name="id" value="#{sdSaleOrderBean.sdSaleOrder.sdSaleOrderStatus.soStatusNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSdCust" value="Sd Cust:"/>
			<h:link id="sdSaleOrderBeanSdSaleOrderSdCust" outcome="/sdCust/view" value="#{sdSaleOrderBean.sdSaleOrder.sdCust}">
				<f:param name="id" value="#{sdSaleOrderBean.sdSaleOrder.sdCust.custNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSysTitleName" value="Sys Title Name:"/>
			<h:link id="sdSaleOrderBeanSdSaleOrderSysTitleName" outcome="/sysTitleName/view" value="#{sdSaleOrderBean.sdSaleOrder.sysTitleName}">
				<f:param name="id" value="#{sdSaleOrderBean.sdSaleOrder.sysTitleName.titleNameNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSdCustType" value="Sd Cust Type:"/>
			<h:link id="sdSaleOrderBeanSdSaleOrderSdCustType" outcome="/sdCustType/view" value="#{sdSaleOrderBean.sdSaleOrder.sdCustType}">
				<f:param name="id" value="#{sdSaleOrderBean.sdSaleOrder.sdCustType.custTypeNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSdQuotation" value="Sd Quotation:"/>
			<h:link id="sdSaleOrderBeanSdSaleOrderSdQuotation" outcome="/sdQuotation/view" value="#{sdSaleOrderBean.sdSaleOrder.sdQuotation}">
				<f:param name="id" value="#{sdSaleOrderBean.sdSaleOrder.sdQuotation.qtNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoCode" value="So Code:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoCode" value="#{sdSaleOrderBean.sdSaleOrder.soCode}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoDescr" value="So Descr:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoDescr" value="#{sdSaleOrderBean.sdSaleOrder.soDescr}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoDate" value="So Date:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoDate" value="#{sdSaleOrderBean.sdSaleOrder.soDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoRefCustPoNo" value="So Ref Cust Po No:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoRefCustPoNo" value="#{sdSaleOrderBean.sdSaleOrder.soRefCustPoNo}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoCustCode" value="So Cust Code:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoCustCode" value="#{sdSaleOrderBean.sdSaleOrder.soCustCode}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoCustFirstName" value="So Cust First Name:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoCustFirstName" value="#{sdSaleOrderBean.sdSaleOrder.soCustFirstName}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoCustMidName" value="So Cust Mid Name:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoCustMidName" value="#{sdSaleOrderBean.sdSaleOrder.soCustMidName}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoCustLastName" value="So Cust Last Name:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoCustLastName" value="#{sdSaleOrderBean.sdSaleOrder.soCustLastName}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoCustIdCardNo" value="So Cust Id Card No:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoCustIdCardNo" value="#{sdSaleOrderBean.sdSaleOrder.soCustIdCardNo}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoTermOfPaymentDescr" value="So Term Of Payment Descr:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoTermOfPaymentDescr" value="#{sdSaleOrderBean.sdSaleOrder.soTermOfPaymentDescr}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoDiscountPerc" value="So Discount Perc:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoDiscountPerc" value="#{sdSaleOrderBean.sdSaleOrder.soDiscountPerc}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoDiscountVal" value="So Discount Val:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoDiscountVal" value="#{sdSaleOrderBean.sdSaleOrder.soDiscountVal}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoDiscountTotal" value="So Discount Total:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoDiscountTotal" value="#{sdSaleOrderBean.sdSaleOrder.soDiscountTotal}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoStatusIncVat" value="So Status Inc Vat:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoStatusIncVat" value="#{sdSaleOrderBean.sdSaleOrder.soStatusIncVat}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoVatPercVal" value="So Vat Perc Val:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoVatPercVal" value="#{sdSaleOrderBean.sdSaleOrder.soVatPercVal}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoTotalPriceExcVat" value="So Total Price Exc Vat:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoTotalPriceExcVat" value="#{sdSaleOrderBean.sdSaleOrder.soTotalPriceExcVat}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoTotalVat" value="So Total Vat:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoTotalVat" value="#{sdSaleOrderBean.sdSaleOrder.soTotalVat}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSoTotalPrice" value="So Total Price:"/>
			<h:outputText id="sdSaleOrderBeanSdSaleOrderSoTotalPrice" value="#{sdSaleOrderBean.sdSaleOrder.soTotalPrice}"/>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSdSaleOrderCustAddrs" value="Sd Sale Order Cust Addrs:"/>
			<h:dataTable id="sdSaleOrderBeanSdSaleOrderSdSaleOrderCustAddrs" styleClass="data-table" value="#{forgeview:asList(sdSaleOrderBean.sdSaleOrder.sdSaleOrderCustAddrs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Addr 01"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAddr01" value="#{forgeview:display(_item.sysAddr01)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Addr Type"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAddrType" value="#{forgeview:display(_item.sysAddrType)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Cust Addr No"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoCustAddrNo" value="#{_item.soCustAddrNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Cust Addr Moo"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoCustAddrMoo" value="#{_item.soCustAddrMoo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Cust Addr Soi"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoCustAddrSoi" value="#{_item.soCustAddrSoi}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSdSaleOrderItems" value="Sd Sale Order Items:"/>
			<h:dataTable id="sdSaleOrderBeanSdSaleOrderSdSaleOrderItems" styleClass="data-table" value="#{forgeview:asList(sdSaleOrderBean.sdSaleOrder.sdSaleOrderItems)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Qty"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoQty" value="#{_item.soQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Ppu"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoPpu" value="#{_item.soPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Status Inc Vat"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoStatusIncVat" value="#{_item.soStatusIncVat}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoVatPercVal" value="#{_item.soVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Vat"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoVat" value="#{_item.soVat}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sdSaleOrderBeanSdSaleOrderSdSaleOrderCustContacts" value="Sd Sale Order Cust Contacts:"/>
			<h:dataTable id="sdSaleOrderBeanSdSaleOrderSdSaleOrderCustContacts" styleClass="data-table" value="#{forgeview:asList(sdSaleOrderBean.sdSaleOrder.sdSaleOrderCustContacts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Title Name"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysTitleName" value="#{forgeview:display(_item.sysTitleName)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Cust Contact First Name"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoCustContactFirstName" value="#{_item.soCustContactFirstName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Cust Contact Mid Name"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoCustContactMidName" value="#{_item.soCustContactMidName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Cust Contact Last Name"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoCustContactLastName" value="#{_item.soCustContactLastName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Cust Contact Phone No"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderCustContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoCustContactPhoneNo" value="#{_item.soCustContactPhoneNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>